﻿using System;
using System.IO;
using System.Text;

namespace Importer
{
  public class Column
  {
    public string[] Values { get; set; }
    public string ColumnName { get; set; }
    public string FileName { get; set; }
    public Type Type { get; set; }

    public Column(string name, string file, Type type)
    {
      ColumnName = name;
      FileName = file;
      Type = type;
    }

    public void LoadData(string dir)
    {
      Values = File.ReadAllLines(Path.Combine(dir, FileName), Encoding.GetEncoding(1251));
    }
  }
}